package org.example.backend.config;


import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 啊昌
 * @date 2025/7/18 22:08
 * Knife4jConfig Knife4j配置 访问是 http://127.0.0.1:9090/api/doc.html
 */
@Configuration
public class Knife4jConfig {

	@Bean
	public OpenAPI customOpenAPI() {
		return new OpenAPI()
				// 接口文档标题
				.info(new Info()
						.title("API文档")
						.description("Spring Boot Knife4j API")
						.version("1.0.0")
						.contact(new Contact().name("achang").url("https://lwer.site").email("achang@qq.com"))
				); // 接口文档版本
	}
}
